import random
random_str = "word " * random.randint(2, 20) + \
    "Python " + f"{random.randint(2, 20)}" * random.randint(2, 20)
print(f"random_str is:\n{random_str}")
# You don't need to understand whatever it is above.
# All you need to know is that random_str is a string containing "Python".
# If you don't understand, you can go ahead and try running this script before doing your homework.
# Print everything including and before the first "n" using only 1 statement.
#
print(random_str[:random_str.find("n") + 1])  # +1是为了把n也包括上
